package com.yuanfeng.goods.feign;

import com.yuanfeng.commoms.dto.oos.OssUploadUpdateParamDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Stranger
 * @date 2023/3/24 9:30
 */
@FeignClient(name = "mall-third-party", url = "http://localhost:8088")
public interface ThirdPartyServiceClient {

    /**
     * 上传图片或文档 base64 格式传输
     *
     * @param param
     * @return
     */
    @PostMapping("/web/oss/upload")
    ResponseResult uploadToOssBase64(@RequestBody OssUploadUpdateParamDTO param);
}
